package com.lagou.edu.core;


import java.util.HashMap;
import java.util.Map;

/**
 * 最初的BeanFactory 工厂接口
 */
public interface SummerBeanFactory {

    void registerBeanDefinition(String beanDefinition) throws ClassNotFoundException;

    void registerBeanDefinition(Class beanDefinitionClass) throws ClassNotFoundException;

    void destroyBeanDefinition(String beanDefinition) throws ClassNotFoundException;

    void destroyBeanDefinition(Class beanDefinitionClass) throws ClassNotFoundException;

    Map<String,Object> getBeansWithAnnotation(Class clazz);

    Map<String,Object> getBeans();

    void replaceBean(String beanDefinition,Object object);

}
